define(['text!./detail.html', 'css!./detail.css'], function( html) {
	avalon.templateCache['detail']=html;
	var vm = avalon.define({
	    $id: "detail",
	    back:function(){
	    	Router.go('/message/message');
	    },
	    list:{},
	    getData:function(){
	    	var user = JSON.parse(getstorage('user'))
			httpPost('measuremsg/getUserMeasureMsg', {
				msgid: Router.contentList
			}).done(function(data) {
				if("200" == data.code) {
					vm.list = data.userMeasureMsg;
				} else {
					msgbox('提示', data.msg);
				}
			});
	   },
	   init:function(){
	   	vm.getData();
	   }
  });
});